import axios from '@/common/config/axiosConfig'
import qs from 'qs'

export const insert = (data) => {
  return axios.post('/api/v1/merchantAuthentication/insert', data,{
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export const update = (data) => {
  return axios.put('/api/v1/merchantAuthentication/update', data)
}
export const queryPageList = (params) => {
  return axios.get('/api/v1/merchantAuthentication/queryByPage', {
    params,
    paramsSerializer: function (data) {
      return qs.stringify(data)
    }
  })
}
export const queryAll = () => {
  return axios.get('/api/v1/merchantAuthentication/queryAll')
}
export const selectOne = () => {
  return axios.get(`/api/v1/merchantAuthentication/queryOne`)
}
